package com.relytosoft.mizar.media.camera.services.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.relytosoft.dubhe.common.core.base.page.PageQuery;
import com.relytosoft.mizar.media.camera.api.entity.DownLoadLog;
import com.relytosoft.mizar.media.camera.api.pojo.dto.DownLoadLogDto;
import com.relytosoft.mizar.media.camera.api.pojo.vo.DownLoadLogVo;
import com.relytosoft.mizar.media.camera.services.mapper.DownLoadLogMapper;
import com.relytosoft.mizar.media.camera.services.service.DownLoadLogService;
import org.springframework.stereotype.Service;

/**
 * @author wss
 * @version 1.0
 * @date 2022/6/15 14:56
 */
@Service
public class DownLoadLogServiceImpl extends ServiceImpl<DownLoadLogMapper, DownLoadLog> implements DownLoadLogService {

    @Override
    public IPage<DownLoadLogVo> pageList(DownLoadLogDto downLoadLogDto, PageQuery pageQuery) {
        Page<DownLoadLog> page = pageQuery.build();
        return baseMapper.selectPageList(page, downLoadLogDto);
    }
}
